﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" namespace="NHibernateLibrary.Entities" assembly="NHibernateLibrary">

  <class name="CompanyIndustry" table="COMPANYINDUSTRY">


    <composite-id>
      <key-property name="Id" column="Id" type="Int64">
        <column name="Id" unique="true" not-null="true"/>
      </key-property>
        <key-many-to-one name="CompanyId" class="Company" column="CompanyId" />
      <key-property name="Industry" column="INDUSTRY" length="100"/>
    </composite-id>

  </class>

</hibernate-mapping>